package com.bootdo.mall_part.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import com.bootdo.common.annotation.NotColumn;
import com.bootdo.common.fansheutils.FansheUtils;
import com.bootdo.common.fansheutils.JibenLei;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.haojiangbo.annotation.HapiFeild;


/**
 * 
 * 
 * @author lujingqian
 * @email 2100272728@qq.com
 * @date 2019-11-12 16:18:51
 */
 @JsonInclude(JsonInclude.Include.NON_NULL)
public class MallEvaluate extends JibenLei {
	@NotColumn
	private static final long serialVersionUID = 1L;
	
	
	//id
	 @NotColumn 	@HapiFeild("id")
	private Long id;
	
	//创建时间
		@HapiFeild("创建时间")
	private Date createTime;
	
	//星星数
		@HapiFeild("星星数")
	private Integer starNumber;
	
	//订单编号
		@HapiFeild("订单编号")
	private String orderNo;


	@HapiFeild("订单号")
	private String orderId;
	
	//商品的id
		@HapiFeild("商品的id")
	private Long goodsId;
	
	//商家的id
		@HapiFeild("商家的id")
	private Long merchantId;
	
	//商家姓名
		@HapiFeild("商家姓名")
	private String merchantName;
	
	//评价内容
		@HapiFeild("评价内容")
	private String content;
	
	//评论者id
		@HapiFeild("评论者id")
	private Long commentId;
	
	//评论者昵称
		@HapiFeild("评论者昵称")
	private String commentName;
	
	//评论者的头像
		@HapiFeild("评论者的头像")
	private String commentAvater;
	
	//评论者类型
		@HapiFeild("评论者类型")
	private Integer commentType;
	
	//回复者id
		@HapiFeild("回复者id")
	private Long replierId;
	
	//回复者姓名
		@HapiFeild("回复者姓名")
	private String replierName;
	
	//回复者头像
		@HapiFeild("回复者头像")
	private String replierAvater;
	
	//回复者类型 1代表用户 2代表商家
		@HapiFeild("回复者类型 1代表用户 2代表商家")
	private Integer replierType;

	@HapiFeild("代表是否已读 1代表未读 2代表已读")
	private Integer isRead;
	
	//父级id
		@HapiFeild("父级id")
	private Long parentId;

	private Long grandFatherId;

	@NotColumn
	private List<MallEvaluate> sonList;

	@NotColumn
	private Integer sonTotal;

	@HapiFeild("用户的id")
	private Long memberId;

	@HapiFeild("用户昵称")
	private String memberNickName;

	private String memberMobile;

    public MallEvaluate(){

    	this.isRead = 1;
    	this.createTime = new Date();
    }


	/**
	 * 设置：id
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 获取：id
	 */
	public Long getId() {
		return id;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}
	/**
	 * 设置：星星数
	 */
	public void setStarNumber(Integer starNumber) {
		this.starNumber = starNumber;
	}
	/**
	 * 获取：星星数
	 */
	public Integer getStarNumber() {
		return starNumber;
	}
	/**
	 * 设置：订单编号
	 */
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	/**
	 * 获取：订单编号
	 */
	public String getOrderNo() {
		return orderNo;
	}
	/**
	 * 设置：商品的id
	 */
	public void setGoodsId(Long goodsId) {
		this.goodsId = goodsId;
	}
	/**
	 * 获取：商品的id
	 */
	public Long getGoodsId() {
		return goodsId;
	}
	/**
	 * 设置：商家的id
	 */
	public void setMerchantId(Long merchantId) {
		this.merchantId = merchantId;
	}
	/**
	 * 获取：商家的id
	 */
	public Long getMerchantId() {
		return merchantId;
	}
	/**
	 * 设置：商家姓名
	 */
	public void setMerchantName(String merchantName) {
		this.merchantName = merchantName;
	}
	/**
	 * 获取：商家姓名
	 */
	public String getMerchantName() {
		return merchantName;
	}
	/**
	 * 设置：评价内容
	 */
	public void setContent(String content) {
		this.content = content;
	}
	/**
	 * 获取：评价内容
	 */
	public String getContent() {
		return content;
	}
	/**
	 * 设置：评论者id
	 */
	public void setCommentId(Long commentId) {
		this.commentId = commentId;
	}
	/**
	 * 获取：评论者id
	 */
	public Long getCommentId() {
		return commentId;
	}
	/**
	 * 设置：评论者昵称
	 */
	public void setCommentName(String commentName) {
		this.commentName = commentName;
	}
	/**
	 * 获取：评论者昵称
	 */
	public String getCommentName() {
		return commentName;
	}
	/**
	 * 设置：评论者的头像
	 */
	public void setCommentAvater(String commentAvater) {
		this.commentAvater = commentAvater;
	}
	/**
	 * 获取：评论者的头像
	 */
	public String getCommentAvater() {
		return commentAvater;
	}
	/**
	 * 设置：评论者类型
	 */
	public void setCommentType(Integer commentType) {
		this.commentType = commentType;
	}
	/**
	 * 获取：评论者类型
	 */
	public Integer getCommentType() {
		return commentType;
	}
	/**
	 * 设置：回复者id
	 */
	public void setReplierId(Long replierId) {
		this.replierId = replierId;
	}
	/**
	 * 获取：回复者id
	 */
	public Long getReplierId() {
		return replierId;
	}
	/**
	 * 设置：回复者姓名
	 */
	public void setReplierName(String replierName) {
		this.replierName = replierName;
	}
	/**
	 * 获取：回复者姓名
	 */
	public String getReplierName() {
		return replierName;
	}
	/**
	 * 设置：回复者头像
	 */
	public void setReplierAvater(String replierAvater) {
		this.replierAvater = replierAvater;
	}
	/**
	 * 获取：回复者头像
	 */
	public String getReplierAvater() {
		return replierAvater;
	}
	/**
	 * 设置：回复者类型 1代表用户 2代表商家
	 */
	public void setReplierType(Integer replierType) {
		this.replierType = replierType;
	}
	/**
	 * 获取：回复者类型 1代表用户 2代表商家
	 */
	public Integer getReplierType() {
		return replierType;
	}
	/**
	 * 设置：父级id
	 */
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}
	/**
	 * 获取：父级id
	 */
	public Long getParentId() {
		return parentId;
	}

	public Long getGrandFatherId() {
		return grandFatherId;
	}

	public void setGrandFatherId(Long grandFatherId) {
		this.grandFatherId = grandFatherId;
	}

	public Integer getIsRead() {
		return isRead;
	}

	public void setIsRead(Integer isRead) {
		this.isRead = isRead;
	}

	public List<MallEvaluate> getSonList() {
		return sonList;
	}

	public void setSonList(List<MallEvaluate> sonList) {
		this.sonList = sonList;
	}

	public Integer getSonTotal() {
		return sonTotal;
	}

	public void setSonTotal(Integer sonTotal) {
		this.sonTotal = sonTotal;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public Long getMemberId() {
		return memberId;
	}

	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}

	public String getMemberNickName() {
		return memberNickName;
	}

	public void setMemberNickName(String memberNickName) {
		this.memberNickName = memberNickName;
	}

	public String getMemberMobile() {
		return memberMobile;
	}

	public void setMemberMobile(String memberMobile) {
		this.memberMobile = memberMobile;
	}

	@Override
	@JsonIgnore
	public List<HashMap<String, Object>> getFields() {
		// TODO Auto-generated method stub
		return FansheUtils.getFieldList(this);
	}


}
